package com.company.common.exception;


public enum SystemCode implements ErrorCode {

    OK(0,"操作成功"),
    SYSTEM_ERROR(1,"服务器内部异常"),
    LOGIN_ERROR(2,"未登录或超时"),
    PARAM_ERROR(3,"参数中含有不允许输入的特殊字符"),
    USER_OPTION_ERROR(4,"您没有操作该接口的权限"),
    URL_OPTION_ERROR(4,"未配置接口权限"),
    PARAM_IS_EMPTY(100,"参数不能为空"),
    PARAM_IS_NULL(101,"参数不能为NULL"),
    ;
    private int code;
    private String message;


    private SystemCode(int code, String message)
    {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
